export default {
  methods: {
    checkPermission(checkName) {
      const roles = this.$store.state.user.userInfo.roles
      // 判断返回授权中是否含有此权限
      return roles && roles.points.indexOf(checkName) !== -1
    }
  }
}
